@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    height: 100vh;
    border-style: none;
}

body {
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    font-family: v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    height: 100vh;
}

#root {
    border-radius: 12px;
    background-color: #fefefe;
    height: 100vh;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-title-bar {
    --wails-draggable: drag;
    widows: 1;
    cursor: default;
    user-select: none;
    height: 36px;
    background-color: #fefefe;
    border-bottom: 1px solid #fefefe;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    border-radius: 12px 12px 0 0;
}

.app-title-bar:hover{
    border-bottom: 1px solid #eaeaea;
}

img{
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    --wails-draggable: no-drag
}

.img-container {
    width: 100%;
    height: 120px;
}

.img-container .c-cover {
    height: 120px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    object-position: center; 
}

.duration-badge {
    position: absolute !important;
    bottom: 0;
    right: 0;
    z-index: 9000;
    overflow: hidden;
}

.cancel_collect_span{
    position: absolute;
    left: 7.5px;
    bottom: 7.5px;
    z-index: 9000;
    background-color: #fab1a0;
    display: block;
    width: 25px;
    height: 25px;
    cursor: pointer;
    opacity: 0.5;
}

.cancel_collect_span:hover{
    opacity: 1;
}

.padding-0 {
    padding: 0 !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.margin-0-auto {
    margin: 0 auto !important;
}

.center-container {
    display: flex;
    justify-content: center;
    /* align-items: center; */
    /* height: 100vh; */
    margin-top: 25px;
}

.list-div {
    position: fixed;
    bottom: -100vh;
    left: 0;
    height: 75vh;
    width: 100vw;
    overflow: scroll;
    background-color: #eeeeee;
    padding: 16px 8px;
    transition: bottom 0.5s ease-in-out;
}

.list-div legend {
    padding: 10px;
    font-size: 21px;
    font-weight: 700;
    position: fixed;
    background-color: #2dbbee;
    z-index: 9999;
    width: 100%;
    margin-top: -16px;
    border-bottom: solid 1px #c1c1c1;
    margin-left: -8px;
}

.page-list-flow {
    width: 100% !important;
    margin-top: 35px !important;
}

.slide-in {
    bottom: 0 !important;
}

#player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    /* height: 500px; */
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(/assets/player/google.woff2) format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

#video-cover {
    width: 45vh;
    height: 45vh;
    background-color: #eeeeee;
    border: solid 1px #eeeeee;
    margin: 15vh 0 0 10vw;
    border-radius: 25vh;
    background-image: url(/logo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation-duration: 20s;
    float: left;
    cursor: pointer;
}

#video-info {
    float: left;
    margin: 8vh 0 0 5vw;
    width: 40vw;
}

#video-owner-face {
    width: 48px;
    border-radius: 100%;
}

#video-owner-name {
    font-size: 18px;
    margin-left: 0px;
}

#video-title {
    font-size: 16px;
    margin-top: 8px;
    max-height: 15vh;
    overflow: hidden;
}

#video-desc {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    max-height: 12vh;
    overflow: hidden;

}

#video-part {
    font-size: 18px;
    margin-top: 6px;
    overflow: hidden;
    max-height: 10vh;
}

.info-tools {
    margin: 3vh 0 0 0;
    float: left;
    position: absolute;
    /* bottom: 15vh; */
    bottom: 20vh;
}

.info-tools-button {
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.info-tools-button:hover {
    background-color: #2dbbee !important;
}

.slideBtnClass {
    position: absolute;
    right: 30px;
    border: 0;
    height: 25px;
    width: 25px;
    border-radius: 100%;
}

.slideBtnClass i {
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 100%;
    font-size: 25px;
}

.slideBtnClass i:hover {
    background-color: #2dbbee;
    cursor: pointer;
}

#page-num {
    font-size: smaller;
    font-weight: 400;
}

.page-item-header {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item:hover {
    box-shadow: 1px 1px 8px 0 grey;
}

.list-item-playing::after {
    background-image: url(SmartDisplayTwotone.svg);
    display: block;
    position: absolute;
    left: 15px;
    bottom: 15px;
    /* z-index: 99999; */
    width: 40px;
    content: '';
    background-color: #ffffff94;
    height: 32px;
    background-size: 48px;
    background-position: center;
    border-radius: 6px;
    cursor: pointer;
    pointer-events: none;
}

.login-panel{
    display: none;  
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}
.login-panel .login-panel-close{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    color: #ffffff;
    cursor: pointer;    
    background-image: url(/assets/Close.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 38px;
    background-color: #ffffff;
}

.login-panel .login-panel-close:hover{
    background-color: #2dbbee;
}

.login-panel .login-panel-title{
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

.login-panel img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
    background-size: 200px;
}

.user-avatar{
    width: 42px;
    height: 42px !important;
    border-radius: 100%;
    margin-right: 10px;
    margin-left: 10px;
    cursor: pointer;
    background-repeat: no-repeat !important;
    background-size: 42px !important;
    border: solid 1px #000000;
    background-position: center !important;
}

.bl-feed-list-refresh{
    background-image: url(/assets/Refresh.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 100%;
    border: none;
    background-color: #eeeeee;
    padding: 3px;
}
.bl-feed-list-refresh:hover{
    background-color: #eeeeee;
    /* 背景图片转一圈 */
    animation: spin 2s linear infinite;
}

.info-tools-bl-user-group{
    border: 1px solid #000000;
    border-radius: 12px;
    padding: 5px;
    margin-top: 10px;
    padding-right: 0px;
    background-color: #34495e;
    display: inline-flex;
    gap: 0px;
}

.info-tools-bl-user-group .info-tools-button{
    background-color: #ffffff;
}

.can-seelect{
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    -o-user-select: text;
}

.search-line-border-color{
    border-color: rgb(93, 93, 93) !important;
}

.search-line-border-color:hover{
    border-color: #2dbbee !important;
}

.v-border-none{
    border: none !important;
}

.v-border-none:hover{
    border: none !important;
}

.custom_hover_button:hover {
    background-color: #2dbbee !important;
}

#min-video-info{
    float: left;
}

#min-video-info-cover{
    height: 58px;
    width: 58px;
    background-image: url(/logo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    float: left;
    background-color: #eeeeee;
    border: solid 1px #eeeeee;
}

#min-video-info-content{
    float: right;
    margin-left: 15px;
    width: calc(100vw - 130px);
    font-size: 14px;
    height: 60px;
    overflow: hidden;
}

#switch-window-mode{
    position: absolute;
    top: -27px;
    right: 6px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    z-index: 9999999;
    opacity: 0.1;
}

#switch-window-mode:hover {
    opacity: 1;
}

#wds-handle-group{
    /* border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #eeeeee;
     */

}